<script src="<?php print $url?>js/data-table.jquery.js"></script>
<script>
  $(function () {
    $('.data-tbl-boxy').dataTable({
        "sPaginationType": "full_numbers",
        "iDisplayLength": 10,
        "oLanguage": {
            "sLengthMenu": "<span class='lenghtMenu'> _MENU_</span><span class='lengthLabel'>Entries per page:</span>",
        },
        "sDom": '<"tbl-searchbox clearfix"fl<"clear">>,<"table_content"t>,<"widget-bottom"p<"clear">>'

    });
  });
</script>
<div id="main-content">
  <div class="container-fluid">
    <ul class="breadcrumb">
      <li><a href="<?php print site_url("frm/accounting/journal")?>"><?php print lang('frm_journal')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/journal-log/".$id_frm_journal)?>"><?php print lang('frm_journal_transaksi')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/all-buku-besar/".$id_frm_journal)?>"><?php print lang('frm_buku_besar')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/neraca/".$id_frm_journal)?>"><?php print lang('frm_neraca')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/neraca-penyesuaian/".$id_frm_journal)?>"><?php print lang('frm_neraca_penyesuaian')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/neraca-setelah-penyesuaian/".$id_frm_journal)?>"><?php print lang('frm_neraca_setelah_penyesuaian')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/rugi-laba/".$id_frm_journal)?>"><?php print lang('frm_rugi_laba')?></a><span class="divider">»</span></li>
      <li><a href="<?php print site_url("frm/accounting/work-sheet/".$id_frm_journal)?>"><?php print lang('frm_work_sheet')?></a><span class="divider">»</span></li>
      <li class="active"><?php print $title?></li>
    </ul>
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-block">
          <?php
          if($status == '2'){
          ?>
          <div class="alert alert-error fade in">
            <button data-dismiss="alert" class="close" type="button">×</button>
            <strong><?php print urldecode($pesan)?></strong>
          </div>
          <?php
          }
          if($status == '1'){
          ?>
          <div class="alert alert-success fade in">
            <button data-dismiss="alert" class="close" type="button">×</button>
            <strong><?php print urldecode($pesan)?></strong>
          </div>
          <?php
          }
          ?>
          <div class="widget-head">
            <h5><?php print $title?></h5>
<!--            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php print   site_url("frm/accounting/add-master-account-pajak/") ?>"><i class="icon-plus"></i> Add New</a></li>
                <li><a href="#"><i class="icon-ok"></i> Active</a></li>
                <li><a href="#"><i class="icon-minus-sign"></i> No-Active</a></li>
                <li><a href="#"><i class="black-icons pdf_document"></i> Export to PDF</a></li>
                <li><a href="<?php print   site_url("product/export-xls") ?>"><i class="black-icons excel_document"></i> Export to XLS</a></li>
              </ul>
            </div>-->
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy table">
                <thead>
                  <tr>
                    <th>No Akun</th>
                    <th>Name</th>
                    <th>Price</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  if(is_array($data)){
                    foreach ($data as $key => $value) {
                       
                      print "
                  <tr>
                    <td>{$value->nomor}</td>
                    <td>{$value->title}</td>
                    <td style='text-align: right'>Rp ".number_format($value->saldo, 0, ",", ".")."</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("frm/accounting/add-journal-pajak/".$id_frm_journal."/".$value->id_frm_account_pajak)."'>Edit</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>"
                  ;
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>